package com.itheima.mapper;

import com.itheima.pojo.dto.AddressBookDto.AddressBookAddDto;
import com.itheima.pojo.dto.AddressBookDto.AddressBookUpdateDto;
import com.itheima.pojo.vo.addressBookVo.AddressBookByIdVo;
import com.itheima.pojo.vo.addressBookVo.GetAddressBookVo;
import com.itheima.pojo.vo.addressBookVo.GetDefaultAddressBookVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AddressBookMapper {
    int add(AddressBookAddDto addressBook);
    AddressBookByIdVo selectById(String id);

    int update(AddressBookUpdateDto addressBook);

    int delete(Integer id);

   GetDefaultAddressBookVo selectByIsDefauly();

    List<GetAddressBookVo> selectAll();

}
